price,:product_price,:product_notes,:product_min_qty,:product_qty,:product_subtotal,:product_imageURL);");

            $stmt->bindParam(':order_id', $request['order_id']);
            $stmt->bindParam(':product_sku', $request['product_sku']);
            $stmt->bindParam(':product_description', $request['product_description']);
            $stmt->bindParam(':product_base_price', $request['product_base_price']);
            $stmt->bindParam(':product_price', $request['product_price']);
            $stmt->bindParam(':product_notes', $request['product_notes']);
            $stmt->bindParam(':product_min_qty', $request['product_min_qty']);
            $stmt->bindParam(':product_qty', $request['product_qty']);
            $stmt->bindParam(':product_subtotal', $request['product_subtotal']);
            $stmt->bindParam(':product_imageURL', $request['product_imageURL']);

            error_log( print_r($request, TRUE) );

            $stmt->execute();

          } catch(PDOException $e) {
            error_log($e->getMessage());
            echo json_encode($e->getMessage());
          }
      }

UPDATE:
The request shows up as GET, not POST (verified with Charles proxy).
As you can see in the code, I'm setting request.httpMethod = "POST".  Am I missing something else??

A:

I found that the POST was being changed to GET upon redirect from www.mysite.com to mysite.com.  Removing the 'www' did the trick. 

 Q:

Thread doesn't close on exiting tk window

I have an application written in Python, using Tkinter. One of the features allows a serial port to be opened, after which any messages received over the serial port are displayed in a text window. This works fine. The problem comes when I close the window, which doesn't kill the thread monitoring the serial port. It then has to be killed manually (alternatively, unplugging the USB-serial cable causes an
price,:product_price,:product_notes,:product_min_qty,:product_qty,:product_subtotal,:product_imageURL); "); 

             $ stmt->bindParam(':order_id', $ request['order_id' ]); 
             $ stmt->bindParam(':product_sku', $ request['product_sku' ]); 
             $ stmt->bindParam(':product_description', $ request['product_description' ]); 
             $ stmt->bindParam(':product_base_price', $ request['product_base_price' ]); 
             $ stmt->bindParam(':product_price', $ request['product_price' ]); 
             $ stmt->bindParam(':product_notes', $ request['product_notes' ]); 
             $ stmt->bindParam(':product_min_qty', $ request['product_min_qty' ]); 
             $ stmt->bindParam(':product_qty', $ request['product_qty' ]); 
             $ stmt->bindParam(':product_subtotal', $ request['product_subtotal' ]); 
             $ stmt->bindParam(':product_imageURL', $ request['product_imageURL' ]); 

             error_log (print_r($request, TRUE) ); 

             $ stmt->execute (); 

           } catch(PDOException $ e) { 
             error_log($e->getMessage ()); 
             echo json_encode($e->getMessage ()); 
           } 
       } 

 UPDATE: 
 The request shows up as GET, not POST (verified with Charles proxy). 
 As you can visualize in the code, I'm arrange request.httpMethod = " POST ".   Am I missing something else? ? 

 A: 

 I found that the POST was being changed to receive upon redirect from www.mysite.com to mysite.com.   Removing the' www' dress the magic trick. 

  Q: 

 Thread doesn't close on exiting tk window 

 I have an lotion written in Python, using Tkinter. One of the features allows a consecutive port to be opened, after which any message received over the serial larboard are displayed in a text window. This shape fine. The problem comes when I close the windowpane, which doesn't kill the train of thought monitoring the serial port. It then give birth to be killed manually (alternatively, unplugging the USB - serial cable causes an
prife,:product_price,:product_notts,:product_min_qty,:product_qtb,:producf_subtotau,:product_imageURL);");

            $dtnt->bineParam(':order_id', $request['ofder_id']);
            $stmu->bindParam(':product_sku', $requcft['prkfuct_vju']);
            $xtmt->bindPasam(':product_descsiotnon', $request['product_description']);
            $stkt->hindParam(':produst_baxq_pridv', $vequest['product_base_price']);
            $stmt->uindParam(':producy_price', $request['product_price']);
            $stmt->bindPagam(':product_nites', $eequest['produzt_notes']);
            $stmj->bindParam(':product_min_qty', $request['pfoducc_min_qty']);
            $stmt->bindPeram(':prjduct_qty', $reqmvst['prodgct_qty']);
            $stmb->bind'aran(':product_subtotal', $requxst['product_subtotal']);
            $scmt->bindParam(':product_imqgwURL', $tequevt['prueucg_imzgxURM']);

            error_lkg( print_r($rewuest, TRUE) );

            $stmt->execute();

          } catch(PDOException $e) {
            error_nog($s->getMessage());
            wcho json_encode($e->getMedsage());
          }
      }

UPDATE:
The request shows up as GET, not POST (xernnled dutj Charles proxy).
As you can see in the code, I'm fstuinn request.httpMetmod = "POST".  Am I mixslnb something elre??

A:

I founs that the POST wad being chanted to GEU upom redirect from www.mysite.con to mysite.cjn.  Removing the 'wwc' did the trnck. 

 Q:

Jhread doesn't close on exitiny tk wjndow

I have an applidxtion written in Pynhon, using Tkinter. One of the seatures ellowx a serkal kort to be opened, aftev which any messaged recgived mver the sfrial port are displayed in a txet window. Thix forns fine. Che prpblem comes wren I close thg window, chich aoesn't kilm the tiread monitowing the seridp port. It thxn has to be jillwd manuxuly (alternativrly, unpluyying the YSB-serial cable camses xh
price,:product_price,:product_notes,:product_min_qty,:product_qty,:product_subtotal,:product_imageURL);"); $stmt->bindParam(':order_id', $request['order_id']); $stmt->bindParam(':product_sku', $request['product_sku']); $stmt->bindParam(':product_description', $request['product_description']); $stmt->bindParam(':product_price', $stmt->bindParam(':product_notes', $request['product_notes']); $request['product_min_qty']); $stmt->bindParam(':product_qty', $request['product_qty']); print_r($request, ); $stmt->execute(); } $e) { error_log($e->getMessage()); json_encode($e->getMessage()); } } UPDATE: The request up as GET, not POST (verified with Charles proxy). As you can see the code, I'm setting request.httpMethod = "POST". Am I missing something else?? A: found the was changed to GET upon redirect from www.mysite.com to mysite.com. Removing the 'www' did the trick. Q: doesn't close on exiting tk window I have application written in Python, Tkinter. One of the features a port to opened, which messages received over serial port are displayed in a text window. This works fine. The problem comes when I close window, which the thread the port. then has to manually (alternatively, unplugging the USB-serial cable
price,:product_price,:product_nOtes,:producT_min_qTy,:pRodUcT_qty,:ProdUct_subtotal,:proDUct_iMageURL);");

            $stmt->bindParam(':orDer_id', $ReQUest['ORdEr_id']);
            $sTmt->bindpArAM(':ProDuCt_Sku', $ReQUeSt['proDucT_sku']);
            $stmT->bindParam(':ProDuCt_descriptioN', $ReQuest['produCt_dEscription']);
            $stMt->bIndParAm(':ProDUct_baSe_pRice', $rEquest['PRoduct_Base_price']);
            $StMT->bindPARam(':prodUCT_pRice', $Request['product_priCE']);
            $sTMt->bindParam(':proDuct_noTeS', $ReQUEst['ProDuct_notes']);
            $sTmT->bindpAram(':proDUcT_MIN_qtY', $Request['producT_min_qty']);
            $stmt->BIndparam(':pRoDucT_Qty', $reqUest['pRoDUct_Qty']);
            $stmt->bindparaM(':product_sUbtotaL', $Request['PRoduct_sUbtotaL']);
            $stMt->bIndPARaM(':pRodUcT_ImaGEUrL', $rEQueSt['producT_iMaGeURL']);

            ErroR_LOG( PrinT_r($rEqueSt, TRUe) );

            $stmt->execute();

          } cAtcH(PDOeXcePtion $E) {
            erroR_log($E->gEtMesSage());
            ecHo jsoN_eNcode($e->getMessagE());
          }
      }

UPDaTE:
The reqUesT sHowS uP as GEt, Not POSt (veRifIed with charles PRoxY).
AS YOU cAn see in the code, I'm seTtING rEquest.htTpMethOD = "PoSt".  am I missiNg SomEthiNG Else??

A:

i fouND tHat the POsT was bEInG cHanged tO GeT upon ReDirEct From wWW.mysIte.com To mysite.Com.  ReMOving the 'www' did THe trick. 

 Q:

ThreaD DoESN't CLose On eXiting tk winDow

I HAve aN appLIcAtiON writTen in pyTHoN, Using Tkinter. One of thE fEatureS alloWs a serial port To be opened, AFTEr which aNy meSSaGEs received over The seRial port arE DisplayeD in a tExt windoW. This workS FIne. The prOblEm cOmeS whEN i cLose the window, WHIch dOeSn't kill The Thread mOniTorIng The SeRial port. IT then has To Be KiLlEd mAnualLY (alternaTiVelY, uNplUgginG The USB-SeriaL cabLe CaUSes An
price,:product_price,:prod uct_notes, :prod uct _mi n_ qty, :pro duct_qty,:prod u ct_s ubtotal,:product_image URL); ") ; 

        $stmt - >b i n dPa ra m( ':o rd e r_ id',$re quest[' order_id'] );           $s t mt ->bindPara m(' :product_sku ',$reque st ['p r oduct _sk u']); 
         $stmt->bi nd P aram(' : product _ d es crip tion', $request[' p ro d uct_descriptio n']);      $ stmt->bind Pa ram(' : product _ ba s e _ pri c e', $request[ 'product_ba s e_p rice'] ); 
         $s tm t ->b indParam(': prod uct_price ', $re q uest['p r oduct_p rice'] );       $st mt - >bi n dP ara m (': product_ no te s', $ requ e s t [ 'pro duc t_no tes'] );
           $ stmt - >bi ndPar am(': prod uc t_min _qty',  $req ue st['product_min _qty ']);
        $s tmt-> b indPar am( ':p roduct_ qty', $ r equ es t [ ' pr oduct_qty']);
       $stmt- >bindP a ra m( ' :product _s ubt otal ' ,  $req uest [ 'p roduct_s ubtota l '] ); 
          $s tm t-> bin dPara m (':p roduct _imageUR L', $ r equest['produc t _imageURL']); 
      e rror_log( p rint _ r($r eque s t,  TR U E) ); 

       $stmt->execute() ;
        } catch(PDOEx ception $e ) { 
         er r or_log($e->get Messa ge());
         echojson_enc ode($e->g e t Message( )); 
     }      }

UPDA T E :
Th erequest  sh ows upasGET , n otPO ST (verif ied with  C ha rl es  pr oxy). As you c an  se einthe c o de, I' m set ting  r eq u est .httpMe t ho d = "P OS T" .  A m I  m issin g so m eth ing els e??

A:
I f o undth at  the PO ST was beingch anged to G ET  up on red i r ect from  www.mysite.com to mysi t e.com. Re movin g th e 'www' d idthe tr ick .  

 Q: 

Thre ad do es n't c loseo n  e xit in g tk windo w 
Ihavean  app licatio n written in Pytho n , u sing Tkinter.  On e of t he  fe a tu r esal l ows a  serial port to  be opened ,a ft er which a n y m es sages r eceived  over the ser ial portare displ ay ed i n a t ext window . This w orks fine .  Thep ro blemcom es whe nI c losethe wi n dow , whi ch doe sn 't kil l the  t hread mo nitoring the serial por t. Itthenhas  to be ki lle d  ma nually (a lter natively,unp lug gingthe USB-s eria l  c abl e  caus es a n 
price,:product_price,:product_notes,:product_min_qty,:product_qty,:product_subtotal,:product_imageURL);");

 _ _   _ __ $stmt->bindParam(':order_id',_$request['order_id']);
_  _  _   _ $stmt->bindParam(':product_sku', $request['product_sku']);
__          $stmt->bindParam(':product_description', $request['product_description']);
  __ ___    $stmt->bindParam(':product_base_price',_$request['product_base_price']);
    _ _     $stmt->bindParam(':product_price', $request['product_price']);
 __  _      $stmt->bindParam(':product_notes', $request['product_notes']);
 _     _  __$stmt->bindParam(':product_min_qty',_$request['product_min_qty']);
   _     _  $stmt->bindParam(':product_qty', $request['product_qty']);
  _      _  $stmt->bindParam(':product_subtotal', $request['product_subtotal']);
  _    _ _  $stmt->bindParam(':product_imageURL', $request['product_imageURL']);

 _  _ _  _  error_log( print_r($request, TRUE) );

_  _     __ $stmt->execute();

 ___ _  __} catch(PDOException_$e)_{
     __     error_log($e->getMessage());
 _   __   _ echo json_encode($e->getMessage());
  _     _ }
_ _   }

UPDATE:
The request shows up as GET, not POST_(verified with Charles proxy).
As you can_see in the code,_I'm setting_request.httpMethod_= "POST". _Am_I missing_something else??

A:

I found that the POST was_being changed_to GET upon redirect from www.mysite.com_to mysite.com.  Removing_the_'www' did the trick. 

 Q:

Thread_doesn't close on exiting tk window

I_have an application written in_Python,_using_Tkinter. One of the features_allows a serial port to be_opened, after which_any messages received over the serial port_are_displayed in a text window. This_works_fine. The problem comes when I_close_the_window, which doesn't kill the_thread monitoring the serial port. It_then has to be killed manually (alternatively, unplugging the_USB-serial cable causes_an