Web Page based Winsock [closed] - vb6

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Is there a web page based version of vb6's Winsock?
I want a web page to send a message to a vb6 program on a different PC.
Any Examples would be great help, thank you

Short answer: No.
Longer answer: You could create a VB6 ActiveX control, but it would be impractical to use due to security lockdown in most IE instalaltions and lack of support in alternative contrarian browsers.
Real answer: You are probably going to look at using some sort of scriptable HTTP Request component (such as XmlHttpRequest) though you must consider cross-domain request security even then. The "VB program on a different PC" would need to be an HTTP server or run under one via classic ASP, as a CGI application, etc.
And of course there would need to be a path from the client web page to the server (i.e. you have firewall and NAT issues to address) in any case.

Related

Using only one credential to do load testing [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Im currently new to end to end testing and planning to do load testing for a website I am currently working on. Im currently looking into jmeter and studying how to use it. My question is, would it make sense to only use one credential for the test? So basically I will be using my credentials then would throwing same HTTP requests multiple times to the server to simulate several users logging in and using the website.
Also if there are other ways to do load testing without using more than one credentials would be helpful!
Thanks in advance for the help!
It depends on your use cases and your site implementation, possible problems could be:
The site may not allow multiple logins under the same credentials like subsequent login will "throw out" the previously logged in user(s)
Depending on how session is being established/maintained you may receive the same Cookies for the same login
Most probably you will be able to implement browsing, but CRUD operations can be a big question mark
From JMeter's perspective it is not a problem to use only one account, any constraints will be on the system under test side.
Ideally you should treat each JMeter thread (virtual user) as the real user and it worth creating that many users as you plan to simulate and use CSV Data Set Config to parameterize your JMeter test so each virtual user could have its own credentials

Python Eve Session Management [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm writing an web application where I'm using python-eve + mongodb for rest api and angular2 for front end.
Now I'm not sure how to manage user session in python-eve after authentication.
Do I need to write custom middle-ware like Django provide by default?
Any help would be appreciated.
Thanks,
Shashank
Well you are using a REST API and one of the core principles of REST is, precisely, the lack of state/session. Each request carries an authorisation token (or equivalent info depending on the type of authentication) since the server does not maintain state between sessions.
With this being said I know that people have been doing exactly what you are asking for, but really, I would not do that in a REST context.

Scripting access to a website using different ips [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to test automatically my website from different locations in order to localize content's presentation. I think I have to write a bash script to access the website with wget program, using an ip from a list. There is somewhere an established solution to this kind of problem ?
There is many solutions. I think to these ones :
IP spoofing. But it's not easy. In particular if you want orchestrate these tests to automate them...
Another solution is to use a reverse-proxy. An example: your application is hosted by Tomcat and you use Apache as reverse proxy. In this case you can easily configure several end-points in Apache where you lie about XFF
Another solution, you can rent VM in the cloud. This is a good approach if you want to perform real performance tests from a remote client, or check the behavior of Internet cache...
Some compagnies sells services to check availability of your web-stuff from different sites.

How to cache every call made for an offline web experience [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm going up to the mountains with no internet connection to present something. I'd like to be able to use interactive examples since I'll be presenting on a certain website.
So is there a way I can set up a proxy caching server or something to cache every call made in order to have a fully cached website experience with no internet connection?
I've looked at http://squidman.net/ but I'm not sure how it works or how to use it.
You might want to try something like this. It might be a lot more work than the steps below, but this could be a good starting point.
Create a local proxy server along with memcache or redis
Update the browser proxy settings to use your proxy server details
Make the local server look for the url in the redis server.
If found, return the data in the redis server
Else, do a web request and store the data in the redis server
You'll have to do this manually for the pages that you want while you have the internet connection. Once you've got all the data you need, you can work without the internet connection too.
If the pages are essentially static then you could use something like HTTrack http://www.httrack.com/ to make an offline copy
If there's anything requiring server side interaction or dynamic generation of pages you're most likely going to need to run your own local instance of the server.

Programmatically helping NAT Translation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a scenario where I have multiple mobile phones using a single home wifi router (read not special or expensive) When I get the phones to send almost identical requests to the same location the router appears to be dropping one phone and keeping the other (generally the faster of the two).
After testing for a while now, I'm closing in on the hypothesis that NAT translation is blocking one of the phones or dropping its returned info from the web.
The goal is to get both phones to communicate with a web application online through a generic home wifi without (key aspect here) modifying the router.
My communication is an AJAX request from within a PhoneGap application. Is there something that I can do programatically to help NAT work it's magic and support multiple phones?
This turned out to be an unknown issue with the Web Host provider. Despite more than a dozen detailed requests for what on their side was blocking things I was always referred to how my own equipment or own code was at fault.
Set myself up a VPS and presto change-o I have a working system with no modifications to the code or the equipment.
TIL I don't like people who cover up their incompetency by blaming others.

Resources